package com.atguigu.gmall.product.vo;

import com.atguigu.gmall.product.entity.SkuInfo;
import com.atguigu.gmall.product.entity.SpuSaleAttr;
import javassist.bytecode.StackMapTable;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;
import java.util.Locale;

/**
 * @ClassName: SkuDetailVo
 * @Author: WDD
 * @CreateTime: 2022-12-08  13:11
 * @Description: 商品详情数据
 */
@Data
public class SkuDetailVo {
    //1.分类信息
    private CategoryViewDTO categoryView;

    //2.sku信息
    private SkuInfo skuInfo;

    //3.价格
    private BigDecimal price;

    //4.销售属性集合
    private List<SpuSaleAttr> spuSaleAttrList;

    //5.valueSkuJson
    private String valueSkuJson;

    @Data
    public static class CategoryViewDTO{
        private Long category1Id;
        private Long category2Id;
        private Long category3Id;
        private String category1Name;
        private String category2Name;
        private String category3Name;
    }
}
